package com.zipking.cloud.springbootmybatis.util;

import lombok.Builder;
import lombok.Data;

@Data
public class Product {
    private final String id;
    private final String name;
    private double price;
    private int stock;

    public Product(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public Product(String id, String name, double price, int stock) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.stock = stock;
    }
}
